import React from 'react';
import { Scene } from 'react-native-router-flux';
import navBarStyle from '../../../components/navBarStyle';
import store from '../models/members';
import EditPolicy from './components/editPolicy';
import PolicyDetail from './components/policyDetail';

module.exports = (
  <Scene
    key="familyPolicyDetail"
    component={PolicyDetail}
    title="家庭保单详情"
    path="family/policy/:id"
    hideTabBar
    renderRightButton={({ policy, customerId }) => (
      <EditPolicy policy={policy} customerId={customerId} />
    )}
    {...navBarStyle}
    store={store}
  />
);
